<template>
  <div style="display: flex; justify-content: center; align-items: center">
    <el-button type="danger" @click="remove">删除</el-button>
    <el-button type="warning" @click="edit">修改</el-button>
  </div>
</template>

<script>
import { showConfirm } from "@/utils/confirm/index";
export default {
  name: "Operate",
  methods: {
    async remove() {
      let result = await showConfirm();
      if (result === true) {
        this.$emit("remove");
      }
    },
    edit() {
      this.$emit("edit");
    },
  },
};
</script>
